﻿@model WebApplication.Models.Nodes

@{
    ViewBag.Title = "Details";
}

<h2>Details</h2>

<div>
    <h4>Nodes</h4>
    <hr />
    <dl class="dl-horizontal">
        <dt>
            @Html.DisplayNameFor(model => model.Work.name)
        </dt>

        <dd>
            @Html.DisplayFor(model => model.Work.name)
        </dd>

        <dt>
            @Html.DisplayNameFor(model => model.Spare)
        </dt>

        <dd>
            @Html.DisplayFor(model => model.Spare)
        </dd>

        <dt>
            @Html.DisplayNameFor(model => model.Activ)
        </dt>

        <dd>
            @Html.DisplayFor(model => model.Activ)
        </dd>

    </dl>

    <table class="table">
        <tr>
            <th>
                @Html.DisplayName("Start step")
            </th>
            <th>
                @Html.DisplayName("End step")
            </th>
            <th>
                @Html.DisplayName("Start time")
            </th>
            <th>
                @Html.DisplayName("End time")
            </th>
         
         
            <th></th>
        </tr>

        @foreach (var item in Model._nodeWorks)
        {
            <tr>
                <td>
                    @Html.DisplayFor(modelItem => item.StartStep)
                </td>
                <td>
                    @Html.DisplayFor(modelItem => item.EndSet)
                </td>
                <td>
                    @Html.DisplayFor(modelItem => item.StartTime)
                </td>
                <td>
                 
                      @Html.DisplayFor(modelItem => item.EndTime)
                
                </td>
                
            </tr>
        }

</div>
<p>
 
    @Html.ActionLink("Back to List", "Index")
</p>
